/**
 * 作者：陈文斌 on 2019/1/16.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:flutter/material.dart';
import 'package:crm/constant/constant.dart';
import 'package:crm/component/ClientManager/ImpoetClient/import_client_search_bar_section.dart';
import 'package:crm/component/ClientManager/ImpoetClient/import_client_list_section.dart';
import 'package:crm/view/AppBar/custom_app_bar.dart';

const String Title = '导入客户公司';

class ImportClientPage extends StatefulWidget {
  final int clientType;

  ImportClientPage({Key key, this.clientType}) : super(key: key);

  @override
  State<StatefulWidget> createState() {
    return _ImportClientPageState();
  }
}

class _ImportClientPageState extends State<ImportClientPage> {
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: () {
        FocusScope.of(context).requestFocus(FocusNode());
      },
      child: Scaffold(
        appBar: CustomAppBar(
          title: Title,
          actions: <Widget>[
            MaterialButton(
              onPressed: () {
                Navigator.pop(context);
              },
              child: Text(
                '完成',
                style: AppStyles.actionsTitleStyle,
              ),
            ),
          ],
        ),
        body: Column(
          children: <Widget>[
            ImportClientSearchBarSection(
              onTap: () {},
            ),
            ImportClientListSection(),
          ],
        ),
      ),
    );
  }
}
